'use strict';
import React, {
    Component
} from 'react'
import {
    Link
} from 'react-router'

import Header from './Common/Header'
import {
    urlKey,
    HttpService,
    Tips,
    getClassList
} from '../Tools'
import News from './News'

import score from '../Img/icon/score_index.png'
import growthRecord from '../Img/icon/growthRecord_index.png'
import imgNtc from '../Img/icon/notice_index.png'
import imgKaoqin from '../Img/icon/kaoqin.png'

export default class Index extends Component {
    constructor(props) {
        super(props);
    }
    /**
     * 退出登录——教师
     */
    teacherCancel() {
        location.href = 'http://wx.17find.com/?state=teacher#/login/0/jxt/' + sessionStorage.appToken
    }
    render() {
        return (
            <div className="index_page">
                <Header title='更多'/>
                <ul className='indexlist clearfix'>
                    <li className='index' style={{width:'25%'}}>
                        <Link to='/Score'>
                            <img src={score}/>
                            <span>成绩管理</span>
                        </Link>
                    </li>
                    <li className='index' style={{width:'25%'}}>
                        <Link to='/GrowthRecord'>
                            <img src={growthRecord}/>
                            <span>成长记录</span>
                        </Link>
                    </li>
                </ul>
                <div className="cancellation" onClick={this.teacherCancel.bind(this)}>退出登录</div>
            </div>
        )
    }
}
